package entity;

import java.util.ArrayList;
import java.util.Collection;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

import common.BaseModelObject;

@Entity
public class Account extends BaseModelObject {

	@OneToMany(mappedBy = "account", cascade = CascadeType.ALL)
	private Collection<Equipment> equipments = new ArrayList<Equipment>();

	public Collection<Equipment> getEquipments() {
		return equipments;
	}

	public void setEquipments(Collection<Equipment> equipments) {
		this.equipments = equipments;
	}
}